home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / desaxe / uniqueid.h < prev   
Encoding:
C/C++ Source or Header  |  2007-04-04  |  605 b   |  33 lines

  1. /*
  2.  *  saxfilter.h
  3.  *  
  4.  *
  5.  *  Created by Andreas Vox on 21.09.06.
  6.  *  Copyright 2006 under GPL2. All rights reserved.
  7.  *
  8.  */
  9.  
  10.  
  11.  
  12. #ifndef DESAXE_UNIQUEID_H
  13. #define DESAXE_UNIQUEID_H
  14.  
  15. #include <set>
  16. #include "saxfilter.h"
  17.  
  18. /**
  19.  *  This filter suppresses the output of   
  20.  */
  21. class UniqueID : public SaxFilter {
  22. public:
  23.     UniqueID(SaxHandler* delegate) : SaxFilter(delegate), seenIDs(), level(0)  {}
  24.     virtual void begin(const Xml_string& tag, Xml_attr attr);
  25.     virtual void end(const Xml_string& tag);
  26.     virtual void chars(const Xml_string& text);
  27. private:
  28.     std::set<Xml_string> seenIDs;
  29.     int level;
  30. };
  31.  
  32. #endif
  33.